package com.chag.biz.userbase.dto;

import com.chag.framework.mybatis.BaseSearchCondition;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: CHAG
 * Date: 2016/6/5
 * Time: 12:44
 * 用户查询封装对象.
 */
public class UserSearchDTO extends BaseSearchCondition {
    /**
     * 用户id
     */
    private String id;

    /**
     * 用户编号
     */
    private String code;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 用户手机号
     */
    private String cellphone;

    /**
     * 用户企业编号
     */
    private String orgCode;

    /**
     * 用户名称
     */
    private String name;

    /**
     * 名称模糊查询
     */
    private String nameLike;

    /**
     * 用户状态
     */
    private List<Integer> statusList;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNameLike() {
        return nameLike;
    }

    public void setNameLike(String nameLike) {
        this.nameLike = nameLike;
    }

    public List<Integer> getStatusList() {
        return statusList;
    }

    public void setStatusList(List<Integer> statusList) {
        this.statusList = statusList;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}
